package com.whmall.service.crm.module.supplierreview;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 供应商评论查询条件
 *
 * @author alex
 * @since 2021/1/19
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SupplierReviewQueryCriteria implements Serializable {
    private static final long serialVersionUID = 1L;

    List<Long> idIn;
    private boolean deleted;
    private boolean notDelete;
    private boolean counted;
    private boolean notCount;
    private Long companyId;
    private SupplierReviewPageSourceEnum pageSource;
    private List<Integer> pageSourceIn;
    private SupplierReviewBusinessTypeEnum businessType;
    private List<Integer> businessTypeIn;
    private Long businessId;
    private List<Long> businessIdIn;
    private String businessNo;
    private Integer tag;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createBefore;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createAfter;

    private boolean includeAttachments;
    private boolean includeContent;
    private boolean includeTags;

    private String orderBy;

    private String tagIds;
    private List<Integer> tagList;
}
